package com.lagou.mvc.pojo;

import java.lang.reflect.Method;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.regex.Pattern;

/**
 * 创建人: yyn
 * 创建时间:2021/8/2 22:07
 */
public class Handler {
    private Object object;

    private Method method;

    private Map<String, Integer> paramIndexMapping;

    private Pattern pattern;

    public Handler() {
    }

    public Handler(Object object, Method method, Pattern pattern) {
        this.object = object;
        this.method = method;
        this.pattern = pattern;
        paramIndexMapping = new HashMap<>();
    }

    public Object getObject() {
        return object;
    }

    public void setObject(Object object) {
        this.object = object;
    }

    public Method getMethod() {
        return method;
    }

    public void setMethod(Method method) {
        this.method = method;
    }

    public Map<String, Integer> getParamIndexMapping() {
        return paramIndexMapping;
    }

    public void setParamIndexMapping(Map<String, Integer> paramIndexMapping) {
        this.paramIndexMapping = paramIndexMapping;
    }

    public Pattern getPattern() {
        return pattern;
    }

    public void setPattern(Pattern pattern) {
        this.pattern = pattern;
    }
}
